package com.chengqs.rainbow.im.security.authentication.password;

import com.chengqs.rainbow.common.security.token.oauth2.Oauth2AuthenticationToken;

/**
 * <B>主类名称：</B>PasswordAuthenticationToken<BR>
 * <B>概要说明：</B>enter<BR>
 *
 * @author: chengqs
 * @create: 2025-09-15 21:25:59
 **/
public class PasswordAuthenticationToken extends Oauth2AuthenticationToken {

    private Object credentials;

    public PasswordAuthenticationToken(Object principal, Object credentials) {
        super(principal);
        this.credentials = credentials;
    }

    public PasswordAuthenticationToken(Object principal) {
        super(principal);
    }

    @Override
    public Object getCredentials() {
        return credentials;
    }
}
